object bob{
	def main(): Unit = {
		println(new WeirdExpr().compute());
	}
}

class WeirdExpr{

	def compute(): Int = {
		var b: Int;
		b = 42;

		println((new w()).get().get().get().print());
		return this.increment(this.decrement(this.increment(b)));
	}

	def increment(a: Int): Int = {
		return a*4/(210 + 1*4 + 1*b.getTab(b[14])[34/2 + 1]);
	}

	def decrement(a: Int): Int = {
		return a + b + c*4 - 10;
	}

	def bob(): Int = {
		if(true)
			if(false)
				println("true false");
			else
				println("true true");
		else
			if(false)
				println("false false");
			else
				println("false true");

		if(bob)
			if(arthur)
				println("bob & arthur");
			else
				println("just bob");

		while(true){
			if(false)
				println("woops");
			else
				println("woops anyway");
		println("Weeeee");
		}

		return 0;
	}

	def logic(): Boolean = {
		return (true && false || (true || false) && false && !((!false && !true.length) + 45));
	}
}

class w{
	var b : WeirdExpr;
	var c : Int;
	var d : Bool;
	var s : String;
	var t : Int[];

	def get(): w = {
		return new w();
	}

	def print(): Int = {
		println("print");
		return 0;
	}
}

class Empty{}
